#ifndef CTHREAD_H
#define CTHREAD_H

#include <QThread>

class CThread : public QThread
{
    Q_OBJECT
public:
    explicit CThread(QObject *parent = nullptr);
    void startThread();
    void stopThread();

    // QThread interface
protected:
    virtual void run() override;
private:
    bool running = false;
signals:
    void threadValue(int step);
};

#endif // CTHREAD_H
